<?php 
define('MODULE_NAME','Note1');
$actions = array('addlist','addyouji','addyouji2','youjiimg');
$action = 'index';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = 'index';
}

define('ACTION_NAME',$action);

require dirname(__FILE__).'/core/fanwe.php';
$fanwe = &FanweService::instance();
$fanwe->initialize();

require fimport('module/note1');

switch(ACTION_NAME)
{
	case 'addlist':
		Note1Module::index();
		break;
	case 'addyouji':
		Note1Module::addyouji();
		break;
	case 'addyouji2':
		Note1Module::addyouji2();
		break;
	case 'youjiimg':
		Note1Module::youjiimg();
		break;
}
?>